package io;

import java.io.*;

/**
 * 在流链接中使用PW
 *
 */
public class PWDemo2 {
    public static void main(String[] args) throws FileNotFoundException, UnsupportedEncodingException {
        FileOutputStream fos =new FileOutputStream("pw2.txt");
        OutputStreamWriter osw =new OutputStreamWriter(fos,"UTF-8");
        BufferedWriter  bw =new BufferedWriter(osw);
        PrintWriter pw =new PrintWriter(bw);
          pw.println("你在哪！我看不见！");
          pw.println("我是一颗小小的石头！！！1！！！");
        System.out.println("搞定");
        pw.close();
    }
}
